package com.wish.wishsystem_management.controller;


import com.github.pagehelper.PageInfo;
import com.wish.wishsystem_management.service.ISysLogService;
import dto.systemDto.SysLogDto;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 系统日志表 前端控制器
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
@RestController
@RequestMapping("/sysLog")
public class SysLogController {
    @Resource
    private ISysLogService sysLogService;

    @RequestMapping("list")
    public ResponseEntity list(@RequestBody SysLogDto sysLogDto) {
        PageInfo<SysLogDto> list = sysLogService.list(sysLogDto);
        return ResponseEntity.ok(list);
    }
}
